package com.gitee.huanminabc.fastboot.web.exception;

import com.gitee.huanminabc.jcommon.reflect.ReflectPath;
import com.gitee.huanminabc.fastboot.web.servlet.InterfaceMethodDefDesc;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


@EqualsAndHashCode(callSuper = true)
@Data
public class ApiResultNullException extends RuntimeException implements Serializable {
    private InterfaceMethodDefDesc interfaceMethodDefDesc;
    public ApiResultNullException(InterfaceMethodDefDesc interfaceMethodDefDesc) {
        super(ReflectPath.getMethodParamAll(interfaceMethodDefDesc.getMethod())+ "方法返回值为空");
        this.interfaceMethodDefDesc = interfaceMethodDefDesc;
    }

}